90214: xfi:filter-member-DRS-selection

Documentation

Dimension tree-view of this testcase: primaryItems has the primary item used in dimension filter test instances (Peak), for an instance of mountain peaks each of a dimension of region and peak height, where this Peak primary item contains the mountain's name as its text. The Peak concept primary item has an all relationship to the SummitHypercube. hypercubes has the SummitHypercube and an explicit dimension, Location, arranged in hierarchy of regions each in separate extended link. regions breaks down into continents into countries, each in their own dimension as a DRS. This allows demonstrating the use of member hierarchies in a DRS with use of targetRole to assemble connected relationships.

Owners

Name Affiliation Email Start End
Herm Fischer Mark V Systems (formerly with UBmatrix) fischer@markv.com 01-09-2008 at 00:00:00

References

function definition

Test Case Variations


V-01 A list of members of North America

Documentation

Peak(primaryItems)->SummitHypercube(hypercubes)->Location->Regions(regions)->America(americas)->NorthAmerica->(UnitedStates,Mexico,Canada). The test is organized to be insensitive to the order of returned member items, though the XPath 2 sequence operators mostly assure that it be in document order.

Inputs

Outputs

  • Result test: $result instance of xs:QName* and count( $result ) eq 3 and index-of($result, QName('http://xbrl.org/formula/conformance/example','concept:Mexico')) and index-of($result, xs:QName('concept:Canada')) and index-of($result, QName('http://xbrl.org/formula/conformance/example','concept:UnitedStates'))

V-02 Same as V-01 but absent linkrole

Documentation

Linkrole is omitted by being an empty string

Inputs

Outputs

  • Result test: $result instance of xs:QName* and count( $result ) eq 3 and index-of($result, QName('http://xbrl.org/formula/conformance/example','concept:Mexico')) and index-of($result, xs:QName('concept:Canada')) and index-of($result, QName('http://xbrl.org/formula/conformance/example','concept:UnitedStates'))

V-03 Same as V-01 but absent linkrole

Documentation

Linkrole is omitted by being an empty sequence

Inputs

Outputs

  • Result test: $result instance of xs:QName* and count( $result ) eq 3 and index-of($result, QName('http://xbrl.org/formula/conformance/example','concept:Mexico')) and index-of($result, xs:QName('concept:Canada')) and index-of($result, QName('http://xbrl.org/formula/conformance/example','concept:UnitedStates'))

V-04 A list of members of Oceania (2 levels of descendants)

Documentation

Inputs

Outputs

  • Result test: $result instance of xs:QName* and count( $result ) eq 5 and index-of($result, xs:QName('concept:Australasia')) and index-of($result, xs:QName('concept:Australia')) and index-of($result, xs:QName('concept:NewZealand')) and index-of($result, xs:QName('concept:Melanesia')) and index-of($result, xs:QName('concept:Indonesia'))

V-05 A list of Oceania child subregions

Documentation

Inputs

Outputs

  • Result test: $result instance of xs:QName* and count( $result ) eq 2 and index-of($result, xs:QName('concept:Australasia')) and index-of($result, xs:QName('concept:Melanesia'))

V-06 A list of Asia subregions with highest peaks

Documentation

Inputs

Outputs

  • Result test: $result instance of xs:QName* and count( $result ) eq 2 and index-of($result, xs:QName('concept:SouthAsia')) and index-of($result, xs:QName('concept:Nepal'))

V-07 A empty list of children of child-less member

Documentation

Inputs

Outputs

  • Result test: empty( $result )

V-08 Nothing found if non-member concept as the member argument

Documentation

Inputs

Outputs

  • Result test: empty( $result )

V-09 Nothing found if non-dimension concept as the dimension argument

Documentation

Inputs

Outputs

  • Result test: empty( $result )

V-10 Nothing found if concept without any has-hypercube relationships is used as the primary item argument

Documentation

Inputs

Outputs

  • Result test: empty( $result )

V-11 Error of non-XBRL element as any of the arguments

Documentation

Inputs

Outputs

  • Result test: empty( $result )

V-12 Raises an error for an attribute declaration dimension argument

Documentation

Tests that error is detected when the dimension name argument declares an attribute.

Inputs

Outputs

  • Error code: xfie:invalidDimensionQName

V-13 Raises an error for an attribute declaration primary item argument

Documentation

Tests that error is detected when the primary item name argument declares an attribute.

Inputs

Outputs

  • Error code: xfie:invalidPrimaryItemConceptQName

V-14 Raises an error for an xbrli namespace'ed argument

Documentation

Tests that error is detected when the dimension qname is xbrli:item

Inputs

Outputs

  • Error code: xfie:invalidDimensionQName

Revisions

Name On Details
Herm Fischer 18-07-2011 at 00:00:00 Created the test case (using filter-member-network-selection example).